Handle possible null symbols in getAttributeTarget#62137
Conversation
|
@dotnet/roslyn-compiler for review. Thanks |
|
@dotnet/roslyn-compiler for second review. Thanks |
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
…ures/semi-auto-props * upstream/main: (887 commits) Ensure elastic trivia for reusable syntax in field generator (#62346) Fix typos in the incremental generators doc (#62343) Theme The "Generate Overrides" Dialog (#62244) Walk green-nodes in incremental-generator attribute-finding path (#62295) Cache the hash in compilation options (#62289) Respect dotnet_style_namespace_match_folder (#62310) Remove unreachable condition Specify builder capacities in incremental generation to avoid wasted scratch arrays. (#62285) Skip the test (#62287) Revert "Revert "Add Move Static Member To Existing Type (#61519)"" (#62284) Highlight the search term in the options page (#61301) Synch handlers with fix (#62209) Disable integration tests Fix Set capacity of builder to avoid expensive garbage. Add public APIs for opened and closed event handling for non-source documents Handle possible null symbols in `getAttributeTarget` (#62137) Perform a lookahead rather than a parsing attempt in order to determine if current token starts a conversion operator declaration. (#62240) Fix a race in CachingDictionary. (#62248) Simplify ...
|
Looks like this has reverted for v17.6.1. Just got this error(following over from #63567) StreamJsonRpc.RemoteInvocationException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree') |
|
I don't think yours is the same as #63567. |
|
@NXTwoThou The exception looks different: "System.ArgumentException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree')". This PR was fixing: "System.NullReferenceException: Object reference not set to an instance of an object." |
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1556927
I've only been able to repro/crash two of the branches, but added defensive checks for all the branches.